package demo.factory.工厂方法;

public class 客户 {
    public static void main(String[] args) {
        可乐工厂 cokeFactory = new 可乐工厂();
        雪碧工厂 spriteFactory = new 雪碧工厂();
        快乐水 kls = cokeFactory.create();
        System.out.println(kls.name());
        快乐水 kls2 = spriteFactory.create();
        System.out.println(kls2.name());
    }
}
